<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2019/12/12
 * Time: 14:16
 */

namespace app\common\model;

use think\Model;


class ChatRoomModel extends Model
{
    public function applyLive()
    {
        return $this->hasOne('ApplyLiveModel','id','live_id');
    }

    public function chatMember()
    {
        return $this->hasOne('ChatMemberModel','live_id','live_id');
    }

    public function Member()
    {
        return $this->hasMany('ChatMemberModel','live_id','live_id');
    }
}